package com.s4j.struts.biz.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

@Entity
@Table(name="biz_li_reson")
public class BizLiReson {
	private Long resonId;	
	private PatientDoc patient;
	private Integer yixing;
	private Integer binxing;
	private Integer jiujingxing;
	private Integer feijiujing;
	private Integer yaowu;
	private Integer zishen;
	private Integer yuanfadz;
	private Integer yuanfadg;
	private String other;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public Long getResonId() {
		return resonId;
	}
	public void setResonId(Long resonId) {
		this.resonId = resonId;
	}
	
	@OneToOne  
    @JoinColumn(name="patientId",insertable=true,unique=true)
	public PatientDoc getPatient() {
		return patient;
	}
	public void setPatient(PatientDoc patient) {
		this.patient = patient;
	}
	public Integer getYixing() {
		return yixing;
	}
	public void setYixing(Integer yixing) {
		this.yixing = yixing;
	}
	public Integer getBinxing() {
		return binxing;
	}
	public void setBinxing(Integer binxing) {
		this.binxing = binxing;
	}
	public Integer getJiujingxing() {
		return jiujingxing;
	}
	public void setJiujingxing(Integer jiujingxing) {
		this.jiujingxing = jiujingxing;
	}
	public Integer getFeijiujing() {
		return feijiujing;
	}
	public void setFeijiujing(Integer feijiujing) {
		this.feijiujing = feijiujing;
	}
	public Integer getYaowu() {
		return yaowu;
	}
	public void setYaowu(Integer yaowu) {
		this.yaowu = yaowu;
	}
	public Integer getZishen() {
		return zishen;
	}
	public void setZishen(Integer zishen) {
		this.zishen = zishen;
	}
	public Integer getYuanfadz() {
		return yuanfadz;
	}
	public void setYuanfadz(Integer yuanfadz) {
		this.yuanfadz = yuanfadz;
	}
	public Integer getYuanfadg() {
		return yuanfadg;
	}
	public void setYuanfadg(Integer yuanfadg) {
		this.yuanfadg = yuanfadg;
	}
	public String getOther() {
		return other;
	}
	public void setOther(String other) {
		this.other = other;
	}
	
	

}
